import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Cursor;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class App extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
//        MainView o = Viewbox.get(MainView.class);
//        o.controller.show();

        primaryStage.show();
        MainController mainController = new MainController();
        mainController.setScene();
        Scene scene = MainController.scene;
        scene.setCursor(Cursor.CLOSED_HAND);
        MainController controller = mainController.loader.getController();
        controller.stage=primaryStage;
        controller.scened=scene;
        primaryStage.setScene(scene);
//        primaryStage.sizeToScene();
//        T1View t1View = new T1View();
//        t1View.init();
//
//        Stage stage = new Stage();
//        stage.setScene(t1View.scene);
//        stage.show();
        FXMLLoader loader=new FXMLLoader(T1Controller.class.getResource("T1.fxml"));
        Object load = loader.load();
    }
}
